package com.kaifamiao.month04.day07.work;

public class Demo {

    String name;
    int age;



    public static void main(String[] args) {
        String str = "abcdefg";
//        System.out.println(str.matches(".*[0-9].*"));// . 代表任意字符  * 代表可以出现任意次数
        StringBuffer str1 = new StringBuffer(str);
        str1.reverse();
        System.out.println(str1); // 12321
        System.out.println((str1.toString()).equals(str)); // true
        String s = str.intern();
        System.out.println(s == str);

        System.out.println(str.replaceAll("[aoeiu]",""));
        Demo demo = new Demo();
        System.out.println(demo.age);
    }
}
